<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/8/28 0028
  Time: 11:39
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%    String path2 = request.getContextPath();
    String basePath2 = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path2+"/";%>
<!-- 网页头部 -->
<div id="header">
    <div>

        <div class="center_1220">

            <div class="right_float">

                <c:if test="${empty user}" var="islogin">
                    <!-- 未登录 -->
                    <a target="_blank" href="${basePath}jsp/lqj/catlogin.jsp">登录</a>|
                    <a target="_blank" href="${basePath}jsp/lqj/post.jsp">免费注册</a>
                </c:if>

                <c:if test="${not empty user}">
                    <div class="user_info">
                        <a target="_blank" href="${basePath}jsp/hs/personal.jsp"
                           style="color: #FFF; padding-right: 21px;">个人中心</a>
                        <div class="user_info_content">

                            <a target="_blank" href="${basePath}jsp/hs/modify.jsp">修改资料</a>
                            <a target="_blank" href="${basePath}head?method=tomypostPage&username=${user.username}">我的帖子</a>
                            <a target="_blank" href="<%=basePath2%>head?method=logOut">退出登录</a>
                        </div>
                    </div>
                </c:if>


            </div>

            <div class="center_text">
                您好<strong>${user.username}</strong>，欢迎来到猫咪交易网
            </div>
        </div>

    </div>
    <div class="clearboth"></div>
    <div class="center_1220">
        <!-- 导航栏 nav_box-->
        <div id="nav_box">
            <div class="nav_box_left">

                <a target="_blank" href="http://localhost:8080/jsp/hs/index.jsp">
                    首页
                    <div class="background_color"><span></span></div>
                </a>

                <a target="_blank" href="${basePath}varieties?method=price&catbreed=布偶猫">
                    买猫卖猫
                    <div class="background_color"><span></span></div>
                </a>


        <a target="_blank" href="${basePath}knowledge?method=indexto">
            选猫知识
            <div class="background_color"><span></span></div>
        </a>


            </div>
            <div class="nav_box_right">
                <a target="_blank" href="${basePath}varieties?method=toIndex">
                    猫咪品种
                    <div class="background_color"><span></span></div>
                </a>
                <a href="http://localhost:8080/jsp/hs/aboutUs.jsp" rel="nofollow">
                    关于我们
                    <div class="background_color"><span></span></div>
                </a>
                <a target="_blank" href="http://localhost:8080/jsp/hs/releaseInformation.jsp">
                    发布信息
                    <div class="background_color"><span></span></div>
                </a>
            </div>

            <div class="logo">
                <a href="http://localhost:8080/jsp/hs/index.jsp">
                    <img title="猫咪交易网" alt="猫咪交易网" src="${basePath}jsp/hs/img/top_logo.png">
                </a>
            </div>
        </div>
    </div>

    <div class="clearboth"></div>
</div>

